package com.wlz.demo.entity;


import cn.hutool.core.annotation.Alias;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * (User)表实体类
 *
 * @author makejava
 * @since 2022-04-11 16:47:07
 */
@TableName("user")
@Data
@ToString
public class User {
    //ID
    @Alias("ID")
    @TableId(type = IdType.AUTO)
    private Integer id;
    //用户名
    @Alias("用户名")
    private String username;
    //密码
    @Alias("密码")
    private String password;
    //别名
    @Alias("别名")
    private String nickName;
    //年龄
    @Alias("年龄")
    private String age;
    //性别
    @Alias("性别")
    private String sex;
    //电话
    @Alias("电话")
    private String phone;
    //地址
    @Alias("地址")
    private String address;
    //头像
    @Alias("头像")
    private String avatarUrl;

    @TableField(exist = false)
    private List<Hobby> hobbyList;
}

